package com.caldremch.calhttp.service;

import com.caldremch.calhttp.http.NetReqManager;
import com.caldremch.calhttp.http.api.ApiFactory;
import com.caldremch.calhttp.http.base.BaseResp;
import com.caldremch.calhttp.http.base.BaseRespData;
import com.caldremch.calhttp.http.bean.BaseReqData;
import com.caldremch.calhttp.http.callback.AbsCallback;
import com.caldremch.calhttp.http.callback.JsonObserver;
import com.caldremch.calhttp.http.callback.Tempsss;
import com.trello.rxlifecycle2.components.support.RxAppCompatActivity;

import io.reactivex.Observable;
import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reactivex.schedulers.Schedulers;

/**
 * @author Caldremch
 * @date 2018-01-19 16:56
 * @describe
 **/
public class HomeApiService extends BaseApiService{


    public static <T> void getSplash(RxAppCompatActivity context, final AbsCallback<T> callback) {
        final BaseReqData baseReqData = new BaseReqData();
        request(
                mApiService.getSplash(getReqData(baseReqData)),
                context,
                callback,
                baseReqData
        );
    }

}
